<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>系统</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>resource/css/global.css"/>
<link rel="stylesheet" type="text/css" href="<%=basePath%>resource/css/main.css"/>
<script type="text/javascript" src="<%=basePath%>resource/js/applet_top.js"></script>
<script type="text/javascript">
   var top_one_menu_id = -1;
   function  directLink(divid,id){
   
   if(id==null||id==''){
       return ;
   }
   if(divid==top_one_menu_id){
     return ;
   }
   top_one_menu_id = divid ;
   var menuDivid = "top_menu_"+ top_one_menu_id ;
   parent.leftFrame.location.href='<%=request.getContextPath()%>/System_left.do?menuId='+id;
   }
   function  logout(){
	   if(confirm("确定退出登录?")){
		 	parent.location.href="<%=basePath%>loginAction_index.do";
	   }
   }
   
   function editPassWord(){
	   parent.rightFrame.location.href='<%=request.getContextPath()%>/user/userAction_updatePassword.do';
   }
   
   function systemSet(){
	   parent.leftFrame.location.href='<%=request.getContextPath()%>/System_left.do';
   }
</script>
</head>
<body>

         <div id="header">
         <div>
         	<!-- 
         	<img src="<%=basePath%>resource/img/top/bnTop.png" height="120px">
         	 -->
         </div>
               <div class="header_menu" style='position:absolute'>
                    <ul>
                    	<!-- 
                      <s:iterator value="listMenu" status="st">
                         <li id="top_menu_<s:property value='#st.index'/>" onclick="directLink(${st.index},'${id}')"><span>${name}</span></li>
                      </s:iterator>
                       --> 
                       <li><span onclick="systemSet();">首页</span></li>
                       <li><span >密码修改</span></li>
                       <li><span onclick="logout();">退出</span></li>
                    </ul>
                    <div class="clear"></div>
               </div>
         </div>
  </body>
</html>